<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2017/6/17
 * Time: 15:08
 */

namespace Weixin\Component\Cookie;


use Common\Common\Component;

class CookieComponent extends Component
{
    public function getCookie()
    {
        return cookie('openid');
    }

    public function setCookie($openid)
    {
        cookie('openid', $openid, 3600);
    }
}